/**
* Author: Samfu
* Time  : 上午2:54:44
* Desc  : 
*/
package com.fu.moneybag.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import com.fu.moneybag.entity.ArticleType;

public interface ArticleTypeService {

	//public int addArticleType(int userId, String articleType);
	public List<ArticleType> getAllArticleTypes(long userId);
	public int deleteArticleType(long userId, String articleType);
	
	public int createNewArticleType(int userId, String articleType);
	
	
	public String createNewArticleType(HttpServletRequest request, HttpSession session, String articleType);
	/**
	 * 批量删除
	 * @param userId
	 * @param articleTypes
	 * @return
	 */
	public int deleteArticleTypes(int userId, String[] types);
	/**
	 * 
	 * @param request
	 * @param session
	 * @return
	 */
	public String getAllArticleTypes(HttpServletRequest request, HttpSession session);
	
	/**
	 * 
	 * @param request
	 * @param session
	 * @param types
	 * @return
	 */
	public String deleteArticleTypes(HttpServletRequest request, HttpSession session, String[] types);
	
	/**
	 * 
	 * @param userId
	 * @return
	 */
	public List<HashMap<String, Integer>> getArticleGroupByType(int userId);
	
}
